package com.oocl.RTRLServer.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MyThreadPool {
	private ExecutorService pool;
	
	
	public MyThreadPool() {
		pool = Executors.newCachedThreadPool();
	}
	
	public void submit(Runnable task){
		pool.submit(task);
	}
	
	public void shutdown(){
		pool.shutdown();
	}
	
	public void shutdownNow(){
		pool.shutdownNow();
	}
}
